Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Implement MPI_IN_PLACE behavior for collectives
[simgrid.git] / examples / lua / state_cloner / duplicated_globals.tesh
1 # Checks that global values are correctly duplicated in Lua processes
2
3 $ lua duplicated_globals.lua
4 > [0.000000] [lua/INFO] Global string is 'A global string set by maestro'
5 > [Tremblay:set_global_string:(1) 0.000000] [lua/INFO] Changing the global string
6 > [Tremblay:set_global_string:(1) 0.000000] [lua/INFO] Global string is 'Calling set_global_string() from Tremblay'
7 > [Bourassa:replace:(2) 0.000000] [lua/INFO] Overwriting function please_dont_replace_me()
8 > [Bourassa:replace:(2) 0.000000] [lua/INFO] Changing the global string
9 > [Bourassa:replace:(2) 0.000000] [lua/INFO] Global string is 'Calling replace() from Bourassa'
10 > [Jupiter:please_dont_replace_me:(3) 0.000000] [lua/INFO] Hello from please_dont_replace_me(). I'm lucky, I still exist in this state.
11 > [Jupiter:please_dont_replace_me:(3) 0.000000] [lua/INFO] Global string is 'A global string set by maestro'