Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running w/covem w/default options crashes unless sqllite database is already present #26

Open
pracplayopen opened this issue Dec 3, 2019 · 0 comments

Comments

@pracplayopen
Copy link

pracplayopen commented Dec 3, 2019

EXPECTED

covtool/covem Usage Instructions say that it will read config at PROGRAM.covcfg if not provided.

ACTUAL

this seems to work as long as a covdb is present.

However, if it's first time running (or the covdb has been deleted), it gives error that it can't open sqllite database:

Unhandled Exception:
Mono.Data.Sqlite.SqliteException (0x80004005): Unable to open the database file
  at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, Mono.Data.Sqlite.SQLiteOpenFlagsEnum flags, System.Int32 maxPoolSize, System.Boolean usePool) [0x00077] in <b696b679f9364e779a1e8ef6b77831e1>:0 
  at Mono.Data.Sqlite.SqliteConnection.Open () [0x00543] in <b696b679f9364e779a1e8ef6b77831e1>:0 
  at XR.Mono.Cover.CodeRecordData.Open (System.String file) [0x00016] in <dfdc5911426b4f4e947479649408c320>:0 
  at XR.Mono.Cover.CoverHostFactory.PrepareHost (XR.Mono.Cover.CoverHost host, System.String covfile) [0x00014] in <dfdc5911426b4f4e947479649408c320>:0 
  at XR.Mono.Cover.CoverHostFactory.CreateHost (System.String covfile, System.String program, System.String[] arguments) [0x00039] in <dfdc5911426b4f4e947479649408c320>:0 
  at Covtool.MainClass.Main (System.String[] vargs) [0x001ea] in <c5890b5c4a41420a923fb3ab6c63a884>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: Mono.Data.Sqlite.SqliteException (0x80004005): Unable to open the database file
  at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, Mono.Data.Sqlite.SQLiteOpenFlagsEnum flags, System.Int32 maxPoolSize, System.Boolean usePool) [0x00077] in <b696b679f9364e779a1e8ef6b77831e1>:0 
  at Mono.Data.Sqlite.SqliteConnection.Open () [0x00543] in <b696b679f9364e779a1e8ef6b77831e1>:0 
  at XR.Mono.Cover.CodeRecordData.Open (System.String file) [0x00016] in <dfdc5911426b4f4e947479649408c320>:0 
  at XR.Mono.Cover.CoverHostFactory.PrepareHost (XR.Mono.Cover.CoverHost host, System.String covfile) [0x00014] in <dfdc5911426b4f4e947479649408c320>:0 
  at XR.Mono.Cover.CoverHostFactory.CreateHost (System.String covfile, System.String program, System.String[] arguments) [0x00039] in <dfdc5911426b4f4e947479649408c320>:0 
  at Covtool.MainClass.Main (System.String[] vargs) [0x001ea] in <c5890b5c4a41420a923fb3ab6c63a884>:0 

This is unexpected as the sqllite database is what we want to create.

WORK-AROUND:

Use baboon_cfg environment variable to point at same file the defaults expect, eg

BABOON_CFG="PROGRAM.exe.covcfg" mono --debug covem.exe PROGRAM.exe myarg1 myarg2

This is probably easy to fix, but wanted to log the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant