Finally getting somewhere! testcase.c can be just: > int main() { }
Use the system GCC, don't need to compile it from source. > $ gcc -o testcase testcase.c This is on kfreebsd-amd64, the executable is 64-bit. Use expect to spawn it like this (same way that dejagnu does in the GCC testsuite) : > $ expect > expect1.1> open "| ./testcase |& cat" "r" > file6 This is okay. Now need gcc-multilib installed for this: > $ gcc -m32 -o testcase testcase.c > $ expect > expect1.1> open "| ./testcase |& cat" "r" The 32-bit executable, spawned this way by expect, triggers an immediate reboot. Regards, -- Steven Chamberlain ste...@pyro.eu.org -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/53701097.3070...@pyro.eu.org