Skip to content

Commit b483ce4

Browse files
committed
[test] add case for nwjs#6056: crash on start with improper child_process spawn path
1 parent 4c16dca commit b483ce4

File tree

11 files changed

+1628
-0
lines changed

11 files changed

+1628
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Program: 5DBat - by BlatSoft
2+
// 04/2017 version: 0.1.0
3+
// dbcontrol.js
4+
// This file used to control all database functions
5+
// - Called from end of start.html/running.html
6+
7+
"use strict";
8+
9+
var dblite = require('dblite');
10+
11+
var dbPath = 'dogs.db';
12+
13+
// ********************** Define SQLite bin path **************************
14+
//dblite.bin = "node_modules/sqlite3/sqlite3"; // if not specified then default install will be used if exists (/usr/local/bin/sqlite3)
15+
dblite.bin = "C:\\sqlite\\badnamesqlite3.exe"; // if not specified then default install will be used if exists (/usr/local/bin/sqlite3)
16+
//dblite.bin = "data/bin/sqlite3"; // if not specified then default install will be used if exists (/usr/bin/sqlite3)
17+
18+
19+
//######################################################################################################
20+
//# DB Connect (dblite)
21+
//######################################################################################################
22+
/**
23+
* Connect Database
24+
* @param dbPath
25+
*
26+
*/
27+
//var db = function connectDb(dbPath) {
28+
var db = dblite(dbPath); // creates if no exist

test/sanity/issue6056-spawn-crash/node_modules/dblite/.npmignore

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/sanity/issue6056-spawn-crash/node_modules/dblite/LICENSE.txt

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)