Opened 12 years ago

Closed 8 weeks ago

#16 closed defect (migrated)

msvsv8 unit test fails

Reported by: mgalati Owned by: ladanyi
Priority: minor Version:
Keywords: unit test Cc: magh@…

Description

msvsv8 unit test fails

Testing CoinFinite ...  finite value: ok; infinite value: ok.
Testing CoinIsnan ...  finite value: ok; NaN value: ok.
Testing CoinModel
Coin6001E Unable to open mps input file ..\..\Data\Sample\exmip1.mps
Assertion failed: numErr== 0, file c:\cygwin\home\magala\coin\coin-cbc\coinutils
\test\coinmodeltest.cpp, line 445

Change History (6)

comment:1 Changed 12 years ago by ladanyi

  • Owner changed from somebody to ladanyi
  • Status changed from new to assigned

Could you give some more info? I do not have access to MSVC... Should not be hard to find where things fail...

Thanks, --Laci

comment:2 Changed 12 years ago by ladanyi

Is this still an issue?

Thanks, --Laci

comment:3 follow-up: Changed 12 years ago by mgalati

Yes, it is still an issue. The default unit test in MSVS8 project gives no default arguments. CoinModelUnitTest? looks for exmip1 in mpsDir at ..\..\Data\Sample\exmip1.mps, which does not exist relative to where the project workspace is.

comment:4 Changed 12 years ago by anonymous

  • milestone milestone1 deleted

Milestone milestone1 deleted

comment:5 in reply to: ↑ 3 Changed 11 years ago by jpfasano

Replying to mgalati:

Yes, it is still an issue. The default unit test in MSVS8 project gives no default arguments. CoinModelUnitTest? looks for exmip1 in mpsDir at ..\..\Data\Sample\exmip1.mps, which does not exist relative to where the project workspace is.

It is working for me

Testing CoinFinite ...  finite value: ok; infinite value: ok.
Testing CoinIsnan ...  finite value: ok; NaN value: ok.
Testing CoinModel
Coin0001I At line 29 NAME          EXAMPLE
Coin0001I At line 30 ROWS
Coin0001I At line 37 COLUMNS
Coin0001I At line 55 RHS
Coin0001I At line 61 RANGES
Coin0001I At line 64 BOUNDS
Coin0001I At line 70 ENDATA
Coin0002I Problem EXAMPLE has 5 rows, 8 columns and 14 elements
Coin0001I At line 15 NAME          P0033
Coin0001I At line 16 ROWS
Coin0001I At line 34 COLUMNS
Coin0001I At line 109 RHS
Coin0001I At line 118 BOUNDS
Coin0001I At line 152 ENDATA
Coin0002I Problem P0033 has 16 rows, 33 columns and 98 elements
Time for readMps is 0.01 seconds
before pass 0 with seed of 66743
need to fill in columns
before pass 1 with seed of 346690
before pass 2 with seed of 234900
before pass 3 with seed of 312387
before pass 4 with seed of 49653
before pass 5 with seed of 860896
before pass 6 with seed of 917172
before pass 7 with seed of 709402
before pass 8 with seed of 925870
before pass 9 with seed of 998443
before pass 10 with seed of 203711
before pass 11 with seed of 562150
before pass 12 with seed of 70223
before pass 13 with seed of 83651
before pass 14 with seed of 646351
need to fill in columns
before pass 15 with seed of 430555
before pass 16 with seed of 64394
before pass 17 with seed of 297311
before pass 18 with seed of 794640
before pass 19 with seed of 517288
before pass 20 with seed of 280953
before pass 21 with seed of 594714
before pass 22 with seed of 167088
before pass 23 with seed of 174871
need to fill in rows
before pass 24 with seed of 339701
before pass 25 with seed of 208258
before pass 26 with seed of 97720
before pass 27 with seed of 463698
before pass 28 with seed of 338084
before pass 29 with seed of 869045
before pass 30 with seed of 212714
before pass 31 with seed of 144535
need to fill in columns
before pass 32 with seed of 936277
before pass 33 with seed of 117038
before pass 34 with seed of 953520
before pass 35 with seed of 61281
need to fill in columns
before pass 36 with seed of 890835
before pass 37 with seed of 708456
before pass 38 with seed of 455580
before pass 39 with seed of 422345
before pass 40 with seed of 714133
before pass 41 with seed of 783501
before pass 42 with seed of 624744
before pass 43 with seed of 111697
before pass 44 with seed of 630909
before pass 45 with seed of 629474
before pass 46 with seed of 524491
before pass 47 with seed of 891537
before pass 48 with seed of 312173
before pass 49 with seed of 118381
Time for 50 CoinModel passes is 0.08 seconds
Testing CoinError
Testing CoinShallowPackedVector
Testing CoinPackedVector
Testing CoinIndexedVector
Testing CoinPackedMatrix
Testing CoinDenseVector
Testing CoinMpsIO
Coin0001I At line 29 NAME          EXAMPLE
Coin0001I At line 30 ROWS
Coin0001I At line 37 COLUMNS
Coin0001I At line 55 RHS
Coin0001I At line 61 RANGES
Coin0001I At line 64 BOUNDS
Coin0001I At line 70 ENDATA
Coin0002I Problem EXAMPLE has 5 rows, 8 columns and 14 elements
EOF on file ..\..\Data\Sample\exmip1.mps
Coin0001I At line 1 NAME          EXAMPLE
Coin0001I At line 2 ROWS
Coin0001I At line 9 COLUMNS
Coin0001I At line 21 RHS
Coin0001I At line 25 RANGES
Coin0001I At line 27 BOUNDS
Coin0001I At line 35 ENDATA
Coin0002I Problem EXAMPLE has 5 rows, 8 columns and 14 elements
Testing CoinMessageHandler
 This should print if the constructor sets format_ to null.
 Setting the log level has no effect for on-the-fly messages.
 Log level is now  0 .
 A core dump here indicates a cloning failure.
 This should print if cloning sets format_ to null.
Test0001I This message has no parts and no fields.
Test0003I This message has an integer field: (42)
Test0004I This message has a double field: (42.42)
Test0005I This message has a char field: (w)
Test0006I This message has a string field: (forty-two)
Test0007I Prefix Part 1 Part 2 with integer in hex 0x002a Part 3 suffix.
Test0007I Prefix suffix.
Test0007I Prefix Part 1 suffix.
Test0007I Prefix Part 2 with integer in hex 0x002a suffix.
Test0007I Prefix Part 3 suffix.
Test0008I  Standardised prefix, free form remainder: An int 42 A double 4.2 a ne
w line
 and done.
 No standardised prefix, free form reminder: integer ( 42 ).
Tran0027I Transition message.
 Trying a clone in mid-message.
Test0007I Prefix Part 1 Part 2 with integer in hex 0x002a Part 3 suffix.
Test0007I Prefix Part 1 Part 2 with integer in hex 0x0042
 The second copy should be missing Part 3 and suffix.
CoinMessageHandlerTest completed without error.
All tests completed successfully.
Press any key to continue . . .

When I open the Properties for unitTestCoinUtils the "Configuration Properties" - "Debugging" - "Working Directory" is set to "$(SolutionDir?)/..". It is this setting that should resolve the problem. It is possible that this setting is stored in the the binary CoinUtils?.suo file. If this is the case then the problem may not be fixed for everyone.

comment:6 Changed 8 weeks ago by stefan

  • Resolution set to migrated
  • Status changed from assigned to closed

This ticket has been migrated to GitHub and will be resolved there: https://github.com/coin-or/CoinUtils/issues/16

Note: See TracTickets for help on using tickets.