blob: 38b430896bfaafd3752229d9a69eddbe0ab90a50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//dumpfilename1.js
//Test designed to make sure error that dumping a collection with "/" fails
t = new ToolTest( "dumpfilename1" );
t.startDB( "foo" );
c = t.db;
assert.writeOK(c.getCollection("df/").insert({ a: 3 }));
assert(t.runTool( "dump" , "--out" , t.ext ) != 0, "dump should fail with non-zero return code")
t.stop();
|