Skip to content

Conversation

@akroshg
Copy link
Contributor

@akroshg akroshg commented Jul 8, 2016

Added a check to return value of fread. Updated the copy-right. Added jenkins support.

Note : Addressing comments on the previous PR of adding native tests. Thanks for the feedback.

@akroshg
Copy link
Contributor Author

akroshg commented Jul 8, 2016

@dilijev @obastemur thanks for the feedback. Please have a look at this.

//
fread((void*)contentsRaw, sizeof(char), lengthBytes, file);
size_t readBytes = fread((void*)contentsRaw, sizeof(char), lengthBytes, file);
if (readBytes < lengthBytes)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see you took this from ch/helpers. For a big file sitting on a slow drive (i.e. a drive on network) this will be most likely failing. I'm adding these both to my list. Gonna send a PR for them. For now; this one at least fails in the right place.

@obastemur
Copy link
Collaborator

LGTM (fread related change)

////////////////////////////////////////////////////////////////////////////////

// Copyright 2008 the V8 project authors. All rights reserved.
// Copyright 2013 the V8 project authors. All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if this copyright year should be updated, if in fact the version of the file you have here is from 2008. Maybe hold off on this until you can fix the test w.r.t. the version we already have in the repo?

@dilijev
Copy link
Contributor

dilijev commented Jul 8, 2016

👍 for adding Jenkins support. Thanks!

Although this makes me wonder if we could have refactored the Jenkins stuff better...

@akroshg
Copy link
Contributor Author

akroshg commented Jul 8, 2016

for Jenkins, when do we use the Jenkins.testall.cmd?

@dilijev
Copy link
Contributor

dilijev commented Jul 8, 2016

@akroshg We don't; it's just convenient to have for starting a local test run of all flavors (and then e.g. going for lunch). I mostly used it while I was developing the Jenkins definitions.

The Jenkins scripts are totally self-contained and you can run them locally, which can be helpful for tracking down issues that don't seem to repro in other builds.

@akroshg
Copy link
Contributor Author

akroshg commented Jul 8, 2016

hmm, may be testall can call testone.cmd for each combination.

@akroshg
Copy link
Contributor Author

akroshg commented Jul 8, 2016

ok I'll remove the splay changes and merge in.

@dilijev
Copy link
Contributor

dilijev commented Jul 8, 2016

@akroshg I want to say I tried that (since it's the obvious choice) and decided against it for whatever reason. I'll look into it again at some point in the future. There's no need for all the code to be duplicated; it just needs to be refactored correctly. :)

Added a check to return value of fread. Updated the copy-right. Added jenkins support.
@chakrabot chakrabot merged commit 19ad691 into chakra-core:master Jul 8, 2016
chakrabot pushed a commit that referenced this pull request Jul 8, 2016
Merge pull request #1256 from akroshg:nta1

Added a check to return value of fread.  Added jenkins support.
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.

5 participants