mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
the output file wouldn't get written. No longer creating the file at startup and then writing it at the end; just writing it at the end. Also recording the start directory at the start so that the output ends up in it even if the program does change directory. Had to add VG_(getcwd)() to vg_mylibc.c for this. Added a regression test for it too. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1576
11 lines
217 B
C
11 lines
217 B
C
#include <unistd.h>
|
|
|
|
// Before the bug was fixed, if a program changed working directory, things
|
|
// would break and the cachegrind.out.<pid> file wouldn't get written.
|
|
int main(void)
|
|
{
|
|
chdir("..");
|
|
|
|
return 0;
|
|
}
|