@@ -66,11 +66,11 @@ describe('snapshot', function() {
66
66
} )
67
67
} )
68
68
69
- describe ( 'another demo should work fine ' , function ( ) {
69
+ describe ( '1266-snapshot-crash-start ' , function ( ) {
70
70
before ( function ( done ) {
71
71
cp . execFile ( snapshotPath ,
72
72
[ '--extra_code' , 'file_to_snapshot_to_app.bin.js' , 'app.bin' ] ,
73
- { cwd :'./' + global . tests_dir + '/snapshot/test -snapshot-app /' } ,
73
+ { cwd :'./' + global . tests_dir + '/snapshot/1266 -snapshot-crash-start /' } ,
74
74
function ( error , stdout , stderr ) {
75
75
done ( ) ;
76
76
}
@@ -79,18 +79,18 @@ describe('snapshot', function() {
79
79
} )
80
80
81
81
after ( function ( ) {
82
- fs . unlink ( path . join ( global . tests_dir , 'snapshot' , 'test -snapshot-app ' , 'app.bin' ) , function ( err ) { if ( err && err . code !== 'ENOENT' ) throw err } ) ;
83
- fs . unlink ( path . join ( global . tests_dir , 'snapshot' , 'test -snapshot-app ' , 'v8.log' ) , function ( err ) { if ( err && err . code !== 'ENOENT' ) throw err } ) ;
84
- fs . unlink ( path . join ( global . tests_dir , 'snapshot' , 'test -snapshot-app ' , 'tmp' ) , function ( err ) { if ( err && err . code !== 'ENOENT' ) throw err } ) ;
82
+ fs . unlink ( path . join ( global . tests_dir , 'snapshot' , '1266 -snapshot-crash-start ' , 'app.bin' ) , function ( err ) { if ( err && err . code !== 'ENOENT' ) throw err } ) ;
83
+ fs . unlink ( path . join ( global . tests_dir , 'snapshot' , '1266 -snapshot-crash-start ' , 'v8.log' ) , function ( err ) { if ( err && err . code !== 'ENOENT' ) throw err } ) ;
84
+ fs . unlink ( path . join ( global . tests_dir , 'snapshot' , '1266 -snapshot-crash-start ' , 'tmp' ) , function ( err ) { if ( err && err . code !== 'ENOENT' ) throw err } ) ;
85
85
} )
86
86
87
87
it ( 'another demo should close nomally' , function ( done ) {
88
88
this . timeout ( 0 ) ;
89
- var ppath = process . execPath + " " + path . join ( global . tests_dir , 'snapshot' , 'test -snapshot-app ' ) ;
89
+ var ppath = process . execPath + " " + path . join ( global . tests_dir , 'snapshot' , '1266 -snapshot-crash-start ' ) ;
90
90
cp . exec ( ppath , function ( err , stdout , stderr ) {
91
91
} ) ;
92
92
setTimeout ( function ( ) {
93
- fs . exists ( path . join ( global . tests_dir , 'snapshot' , 'test -snapshot-app ' , 'tmp' ) , function ( exists ) {
93
+ fs . exists ( path . join ( global . tests_dir , 'snapshot' , '1266 -snapshot-crash-start ' , 'tmp' ) , function ( exists ) {
94
94
if ( exists )
95
95
done ( ) ;
96
96
else
0 commit comments