Skip to content

Tests for JBMC classpath problems #2733

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

Merged
merged 2 commits into from
Aug 30, 2018

Conversation

peterschrammel
Copy link
Member

No description provided.

@peterschrammel peterschrammel force-pushed the test-classpath branch 2 times, most recently from 256949d to 84ef8d3 Compare August 15, 2018 06:19
Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My comments apply to most of the tests. I think this is pretty complete. I would maybe add a test with --classpath xyz:. (with .), as this is our main use case at the moment.

--classpath src
--
Java main class: Test
failed to open input file `Test.class'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid using to specific regex in "not match" section (e.g. replace last line with failed.*Test\.class

@@ -0,0 +1,8 @@
KNOWNBUG
Test.class
--classpath src
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the expected return code?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -0,0 +1,8 @@
KNOWNBUG
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the actual behaviour? Is there a bug ticket?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done #2864

--
--
We override the default path. Hence, Test cannot be found.
Currently fails because symex-driven lazy-loading aborts without an error message.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this only fails with symex-driven lazy-loading, you can mark that test as CORE symex-driven-lazy-loading-expected-failure

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -0,0 +1,7 @@
KNOWNBUG
src/Test.class

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add expected return code.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

KNOWNBUG
Test.class
--classpath test.jar
--
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add expected return code.

@peterschrammel peterschrammel force-pushed the test-classpath branch 2 times, most recently from 055cfb6 to 76dd4de Compare August 30, 2018 11:08
^VERIFICATION SUCCESSFUL$
--
--
This is incorrect as it would search for a Test.class file.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't fully understand the comment. Is that the expected behaviour?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarified and fixed.

@peterschrammel peterschrammel merged commit 6f5d7c4 into diffblue:develop Aug 30, 2018
@peterschrammel peterschrammel deleted the test-classpath branch August 30, 2018 15:43
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

Successfully merging this pull request may close these issues.

2 participants