Back to index

lightning-sunbird  0.9+nobinonly
TestPreload.cpp File Reference
#include "TestPreload.h"
#include <malloc.h>
#include <stdio.h>

Go to the source code of this file.


int main (int argc, char **argv)
 The Xalan testcases app.

Function Documentation

int main ( int  argc,
char **  argv 

The Xalan testcases app.

Definition at line 47 of file TestPreload.cpp.

  char* p = (char*) malloc(LD_PRELOAD_TEST_MALLOC_SIZE);
  if (p == (char*)LD_PRELOAD_TEST_VALUE) {
    printf("LD_PRELOAD worked - we are using our malloc\n");
  else {
    printf("LD_PRELOAD failed\n");
  return 0;